<template>
  <div class="not-found">
    <div class="content">
      <h1>404 - 页面未找到</h1>
      <p>对不起，您访问的页面不存在。</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goHome () {
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f2f5;
}

.content {
  text-align: center;
  max-width: 400px;
}

h1 {
  font-size: 36px;
  color: #333;
}
</style>
